package p270jp.pxv.android.legacy.model;

import java.util.List;
import java.util.Objects;
import p054bn.AbstractC1136i;
import p054bn.DebugMetadata;
import p060c2.Chain;
import p104de.greenrobot.dao.Property;
import p104de.greenrobot.dao.query.QueryBuilder;
import p104de.greenrobot.dao.query.WhereCondition;
import p189gn.AbstractC3450p;
import p270jp.pxv.android.legacy.model.EmojiDao;
import p501sn.CoroutineScope;
import p603wm.Unit;
import p681zm.Continuation;

/* compiled from: EmojiDaoManager.kt */
@DebugMetadata(m10153c = "jp.pxv.android.legacy.model.EmojiDaoManager$emojiList$2", m10152f = "EmojiDaoManager.kt", m10151l = {}, m10150m = "invokeSuspend")
/* renamed from: jp.pxv.android.legacy.model.EmojiDaoManager$emojiList$2 */
/* loaded from: classes2.dex */
public final class EmojiDaoManager$emojiList$2 extends AbstractC1136i implements AbstractC3450p<CoroutineScope, Continuation<? super List<Emoji>>, Object> {
    public int label;
    public final /* synthetic */ EmojiDaoManager this$0;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public EmojiDaoManager$emojiList$2(EmojiDaoManager emojiDaoManager, Continuation<? super EmojiDaoManager$emojiList$2> dVar) {
        super(2, dVar);
        this.this$0 = emojiDaoManager;
    }

    @Override // p054bn.ContinuationImpl
    public final Continuation<Unit> create(Object obj, Continuation<?> dVar) {
        return new EmojiDaoManager$emojiList$2(this.this$0, dVar);
    }

    public final Object invoke(CoroutineScope d0Var, Continuation<? super List<Emoji>> dVar) {
        return ((EmojiDaoManager$emojiList$2) create(d0Var, dVar)).invokeSuspend(Unit.f29503a);
    }

    @Override // p054bn.ContinuationImpl
    public final Object invokeSuspend(Object obj) {
        if (this.label == 0) {
            Chain.m9951I(obj);
            QueryBuilder<Emoji> queryBuilder = this.this$0.daoManager.getReadableSession().getEmojiDao().queryBuilder();
            Property property = EmojiDao.Properties.Image;
            Objects.requireNonNull(property);
            queryBuilder.m7238j(new WhereCondition.PropertyCondition(property, " IS NOT NULL"), new WhereCondition[0]);
            return queryBuilder.m7242f();
        }
        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
    }
}
